Simultaneous euqations using MATLAB